<!doctype html>
<html lang="en">

<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
<META HTTP-EQUIV="expires" CONTENT="0">
<meta charset="UTF-8" />
<meta name="keywords" content="" />
<meta name="descrption" content="" />
<title>待办事项</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
<script src="../../../layui/layui.js" charset="utf-8"></script>
<script src="../../../js/angular.js" charset="utf-8"></script>
<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../gjjhbj/fy.js"></script>


	<link rel="stylesheet" href="../../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../../css/news.css" media="all" />
	<script type="text/javascript" src="../../../layui/layui/GetPath.js"></script>
	<script src="../../../layui/layui/layui.js" charset="utf-8"></script>

</head>
<body class="childrenBody">
	<div class="sysNotice col">
			<blockquote class="layui-elem-quote title">待办事项</blockquote>
			<table class="layui-table">
				<colgroup>
					<col width="10%"  style="min-width:100px">
					<col width="20%">
					<col width="10%" style="min-width:100px">
					<col  width="50%">
				</colgroup>
				</table></div>
	
	<div class="layui-form links_list" ng-app="myApp" ng-controller="customersCtrl" align="center" >
	  	<div>
<loading>查询中请稍后</loading>
		<table class="layui-table" style="width:100%">
			<tr align="center" style="background-color:#f1f1f1">
				<td>状态</td>
				<td>录入日期</td>
				<td>名称</td>
				<td>类别</td>

			</tr>
			<tr ng-repeat="x in names" align="center">

				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.STATUS }}</td>
				<td ng-if="$even">{{ x.STATUS }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.LRRQ }}</td>
				<td ng-if="$even">{{ x.LRRQ }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1;">{{ x.MINGCHENG
					}}</td>
				<td ng-if="$even" >{{ x.MINGCHENG }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.LB
					}}</td>
				<td ng-if="$even">{{ x.LB }}</td>
			</tr>
		</table>
		</div>
<div class="layui-btn-group">
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Sy()">首页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Previous()">上一页</button>
			<button ng-repeat="page in pageList" class="layui-btn layui-btn-primary layui-btn-sm "
				ng-click="selectPage(page)" >{{page}}</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Next()">下一页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Wy()">尾页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm "
				>{{selPage}}/{{pages}}</button>
		</div>
  </div>
  	<script>
		layui.use('element', function() {
			var $ = layui.jquery, element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
		});
	</script>
	<script type="text/javascript">
	
	function getPath() {  
	     
	        return 'http://'+location.host;
	}
		
		
	</script>
	<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../../layui/lay/modules/layer.js"></script>
	<script type="text/javascript" src="../../../layui/layui/layer.ext.js"></script>
	<script type="text/javascript">
		var a;
		var app = angular.module('myApp', []);
		 app.directive('loading', function(){  
		        return {  
		            restrict: 'E',  
		            transclude: true,  
		            template: '<div ng-show="loading" class="loading" id="allDiv"  style="position:fixed; top:0px; left:0px; width:100%; height:100%; display:none; background-color:#000; opacity: 0.5; z-index:99999;">'  
		            +'<img alt="" src="../../../layui/layui/img/jz.gif" style="vertical-align: middle;width:30px; height:30px; position: absolute; top:50%; left:50%; margin-top: -50px; margin-left:-50px;"/>'
		            +'</div>',  
		            link: function (scope, element, attr) {  
		                scope.$watch('loading', function (val) {  
		                    if (val){  
		                        document.getElementById("allDiv").style.display = "block";  
		                    }else{  
		                        document.getElementById("allDiv").style.display = 'none';  
		  
		                    }  
		                });  
		            }  
		        };
		    }); 
		    
		     
		app.controller('customersCtrl', function($scope, $http) {
		
		 $scope.setLoading =function(){  
			    if($scope.loading ==undefined || $scope.loading ==false){  
			        $scope.loading=true;  
			    }else{  
			        $scope.loading=false;  
			    };
			};
			 $scope.setLoading();
			$http.get(getPath() + "/wsyyt/xtxxcontroller/test")
			.then(
				function(res) {
				 $scope.setLoading();
				 console.info(res);
				 if(res.data.msg==null)
				 {
				 	layer.msg("登陆失效请重新登陆");
setTimeout(function () {
	window.top.location.href=res.data;
}, 1500);
return;
				 }
				 
								$scope.names="";
								$scope.selPage="";
								$scope.selectPage="";
								$scope.pages="";
								$scope.page="";
								$scope.pageList="";
								if(res.data.msg!='成功')
								layer.alert('提示：'+res.data.msg, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});								
					$scope.data = res.data.data;
					feny($scope.data);
			});
		});
	</script>	
	
</body>
</html>